import BaseChannel from "./BaseChannel";

export default class SelfChannel extends BaseChannel {
    protected configURL = ''

    protected limitCount:number = 5;
    protected zsConfig = {
        banner: 0,
        insert: 0,
    }


    loginZS() {
        this.loadZSConfig()

    }

    loadZSConfig() {
        // HttpHelper.sendHttpRequest(this.configURL, {}, (msg: string, data: any) => {
        //     console.log('msg ', msg)
        //     console.log('data ', data)
        // })
    }

    isBannerOpen() {
        // return this.zsConfig.banner == 1 || isNull(this.zsConfig.banner);
        console.log('this.zsConfig.banner   ',this.zsConfig.banner )
        return this.zsConfig.banner ++ > this.limitCount;
    }

    isInsertOpen() {
        // return this.zsConfig.insert == 1 || isNull(this.zsConfig.insert);
        return this.zsConfig.insert ++ > this.limitCount;
    }
}
